package com.hlkj.warboot.module_wx.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.hlkj.warboot.configurer.util.base.BaseEntityUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 微信在线号卡秒杀
 * </p>
 *
 * @author lixing_java@163.com
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wx_hk_seckill")
public class HkSeckillEntity extends BaseEntityUtil {

    private static final long serialVersionUID = 1L;

    @TableField("create_time")
    private Date createTime;

    /**
     * 微信openid
     */
    @TableField("openid")
    private String openid;

    /**
     * 秒杀成功后的库存
     */
    @TableField("stock")
    private Integer stock;

    public HkSeckillEntity() {
    }

    public HkSeckillEntity(String openid, Integer stock) {
        this.openid = openid;
        this.stock = stock;
    }

}
